package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VehicleBlacklistMapper;
import com.ruoyi.system.domain.VehicleBlacklist;
import com.ruoyi.system.service.IVehicleBlacklistService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-06
 */
@Service
public class VehicleBlacklistServiceImpl implements IVehicleBlacklistService 
{
    @Autowired
    private VehicleBlacklistMapper vehicleBlacklistMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public VehicleBlacklist selectVehicleBlacklistById(Long id)
    {
        return vehicleBlacklistMapper.selectVehicleBlacklistById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param vehicleBlacklist 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<VehicleBlacklist> selectVehicleBlacklistList(VehicleBlacklist vehicleBlacklist)
    {
        return vehicleBlacklistMapper.selectVehicleBlacklistList(vehicleBlacklist);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param vehicleBlacklist 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertVehicleBlacklist(VehicleBlacklist vehicleBlacklist)
    {
        vehicleBlacklist.setCreateTime(DateUtils.getNowDate());
        return vehicleBlacklistMapper.insertVehicleBlacklist(vehicleBlacklist);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param vehicleBlacklist 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateVehicleBlacklist(VehicleBlacklist vehicleBlacklist)
    {
        return vehicleBlacklistMapper.updateVehicleBlacklist(vehicleBlacklist);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVehicleBlacklistByIds(Long[] ids)
    {
        return vehicleBlacklistMapper.deleteVehicleBlacklistByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVehicleBlacklistById(Long id)
    {
        return vehicleBlacklistMapper.deleteVehicleBlacklistById(id);
    }
}
